package pageobject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;


public class LoginPage extends Page {
	public LoginPage(WebDriver driver){
		super(driver);
	}
		
	public MainPage login(String userName,String password){
		super.open("http://demo.bananascrum.com/");
		insertText(By.id("login"), userName);
		insertText(By.id("password"), password);
		click(By.name("commit"));
		return new MainPage(driver);
	}

	
}
